<?php

require_once(NG.'classes/Notifier.php');
require_once(NG.'classes/Task.php');
require_once(NG.'classes/Cron.php');

$mode = obtainHTTPVar('mode', null);

switch($mode) {
    case 'daily':
        Cron::updateSchedules();
        break;

    case '5min':
        Cron::doTasks(10);
        break;
}
